package com.rem.aop.xmlAop;

import org.junit.jupiter.api.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author Rem
 * @date 2023-03-06
 */
public class TestXmlAop {

    @Test
    public void testAdd() {
        ApplicationContext context = new ClassPathXmlApplicationContext("spring-aop.xml");
        Calculator calculator = context.getBean(Calculator.class);
        calculator.add(4, 3);
    }
}
